﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SecretNumber.Models;

namespace SecretNumber.Controllers
{
    
    public class SecretNumberController : Controller
    {
        //
        // GET: /SecretNumber/
        [HttpGet]
        public ActionResult Index()
        {
            var model = new SecretNumber.Models.SecretNumber();
            return View(model);
        }


        //
        // POST: /SecretNumber/
        [HttpPost]
        public ActionResult Index(Models.SecretNumber secretNumber)
        {
            
            var outcome = secretNumber.MakeGuess();
       
              
            return View("_result");
        }


    }
}
